Topic |
---|
Drafting |
Level |
Beginner |
Time to complete |
20 minutes |
Authors |
Drei |
FreeCAD version |
0.16 or above |
Example files |
See also |
None |
This tutorial was originally written by Drei, and it was rewritten and illustrated by vocx.
This tutorial is meant to introduce the reader to the basic workflow of the Draft Workbench.
The reader will practice:
This tutorial uses the notation (x, y, z)
to denote the coordinates required to define points in an object. The default unit is millimeters mm
.
Final drawing including various Draft objects.
1. Open FreeCAD, create a new empty document with File → New.
2. The Draft Snap toolbar is normally activated when you switch to the Draft Workbench.
You can also change the visibility and properties of the Draft grid in this same window.
Most Draft objects are planar shapes so they are naturally based on a working plane. A working plane can be one of the main XY, XZ, and YZ global coordinate planes, or it can be a plane that is parallel to them with a positive or negative offset, or it can be a plane defined by the face of a solid object.
3. Press SelectPlane, or go to the menu Utilities →
Select plane, to open the working plane task panel.
Before pressing the button, you can also change the value of the offset in millimeters, as well as the grid spacing, the main lines and snapping radius.
4. We will create arcs and lines.
(0, 0, 0)
, and press Enter.30 mm
, and press Enter.60.0°
, and press Enter.60.0°
, and press Enter.25 mm
, the other properties are the same.5. We will now create a closed profile by tying the arcs with lines.
Closed profile created by two arcs and two lines.
We now have several objects in the tree view that form a closed profile. However, this profile is still composed of disconnected objects; each of them can be edited and moved independently of the others. It is possible to continue working with the elements in this way, but it is also possible to fuse them into a single object.
6a. Note that fusing the objects into a single object will create an object that is no longer parametric, so their properties cannot be modified further.
Wire
.6b. If you wish to maintain the parametric nature of the objects you can create a compound instead.
7. We will draw a rectangular frame. (Switch back to the Draft Workbench.)
(-100, -60, 0)
, and press Enter.(140, 90, 0)
, and press Enter.A rectangle is created. Go in the property editor to change its properties. If you don't want the rectangle to create a face, set ÚdajeMake Face to false
. If you want to make a face, but see only the wires of that object, keep ÚdajeMake Face to true
but set the PohledDisplay Mode to Wireframe
.
8. We will draw a circle.
(0, 0, 0)
, and press Enter.15 mm
, and press Enter.9. We will draw a regular polygon.
(0, 0, 0)
, and press Enter.6
, and press Enter.50 mm
, and press Enter.Again, you may change the ÚdajeMake Face and PohledDisplay Mode properties in the property editor if you want.
The rectangle, the circle, the polygon, and most other objects created with the Draft Workbench share many data and view properties because they are derived from the same base class, Part Part2DObject.
Rectangle, circle and polygon added.
Arrays are used to replicate an object several times in an orthogonal direction (X, Y, Z), around a revolution axis, or along a path.
10. We will create a polar array.
Wire
object that was previously created with the Compound
created with the 360°
.4
.(0, 0, 0)
, and press Enter.The array object shows copies of the object around the origin.
Polar array of the small profile centered around the origin.
Linear dimensions work best when using the appropriate Draft Snap methods to select points and edges to measure. However, they can also be created by specifying absolute coordinates.
11. Create dimensions for the different objects.
(0, 0, 0)
.(100, 20, 0)
. The dimension will automatically show the length value measured between the two points.6 mm
, set PohledExt Lines to 45 mm
, and PohledShow Unit to false
.12. Repeat the process for the two arcs of the closed profile. The first point of the measurement will still be the origin, and the second point will use the Midpoint of the arc.
13. Repeat the process for the circle located in the center. The first point of the measurement will still be the origin. To select the second point make sure Toggle snap is active, and only
Angle as well. As you move the pointer to the top of the circle, the
Angle icon should appear; click to select this point. Then move the cursor to the right, and click to fix the dimension.
Remember to adjust the PohledFont Size, and other properties to see the dimension correctly.
Dimensions that measure the vertical distance from the origin to the top of the circle, arcs, and polygon.
14. Text objects are simple planar figures that are created in the 3D view but don't have an actual "shape" underneath. This means that they cannot be used in complex operations with shapes like extrusions or boolean operations.
6 mm
, and PohledJustification to Center
.15. ShapeString objects are shapes made of primitive wires that follow the lines indicated by a certain font. This means that these objects have a real "shape" underneath, and thus can be used in complex operations like extrusions and boolean operations.
(-20, 65, 0)
.Text and ShapeString objects added.
To extrude letters and engrave them on to solids, see the Draft ShapeString tutorial.
As it is now, the objects that we have created can be saved, exported to other formats like SVG or DXF, or printed.
If you wish, you may create a technical drawing to display these objects together with additional information like a frame.
Before doing anything, hide the Draft grid by pressing Toggle grid.
16. Switch to the TechDraw Workbench.
0.75
.Page
.Learn more about the TechDraw Workbench by reading the Basic TechDraw Tutorial.
TechDraw page with a projection of the shapes created with the Draft Workbench.
TechDraw works best with objects that have a Part TopoShape. Since some objects from Draft, like Draft Texts and Draft Dimensions, don't have such "shapes", some operations of TechDraw don't work with these elements.
Tools like TechDraw ActiveView,
TechDraw DraftView, and
TechDraw ArchView work by receiving an internal SVG image that is generated by internal Draft functions; therefore, TechDraw doesn't have much control about how these views are displayed. More integration of Draft and TechDraw is a work in progress.
The Draft Workbench in many ways is similar to the Sketcher Workbench, as both are intended to produce 2D shapes. The main difference is in the way each workbench handles coordinate systems, and how the objects are positioned. In Draft, objects are freely positioned in the global coordinates system, usually snapping their points to a grid, or to other objects. In Sketcher, a "sketch object" defines a local coordinate system which serves as the reference for all geometrical elements within that sketch. Moreover, the sketch relies on "constraints" to define the final position of its points.